package com.hevs.samplewebapp.client.bean;

import com.google.gwt.core.client.JavaScriptObject;
/**
 * Object to retrieve informations from the JSON for User
 * @author Lionel Rey
 * @date 26.03.2012
 *
 */
public class UserDataJson extends JavaScriptObject{

	/**
	 * Constructor of the User
	 */
	protected UserDataJson() {}

	/**
	 * Get the key of the user
	 * @return
	 * the key of the User in String format
	 */
	public final native String getKey() /*-{ return this.key; }-*/;
	
	/**
	 * Get the Fisrtname
	 * @return
	 * the fisrtname of the User in String format
	 */
	public final native String getFirstName() /*-{ return this.firstName; }-*/;
	
	/**
	 * Get the Lastname of the User
	 * @return
	 * the Lastname of the User in String format
	 */
	public final native String getLastName() /*-{ return this.lastName; }-*/;
	
	/**
	 * Get the Login of the User
	 * @return
	 * the Login of the User in String format
	 */
	public final native String getLogin() /*-{ return this.login; }-*/;
	
	/**
	 * Get the password of the User
	 * @return
	 * the password of the User in String format
	 */
	public final native String getPassword() /*-{ return this.password; }-*/;
	
	/**
	 * Get the email of the User
	 * @return
	 * the email of the User in String format
	 */
	public final native String getEmail() /*-{ return this.email; }-*/;
	
	/**
	 * Get the credential level of the User
	 * @return
	 * the credential level of the User in int format
	 */
	public final native int getCredentialLevel() /*-{ return this.credentialLevel; }-*/;
}
